﻿
using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	
	/// <summary>	 
	/// 后台菜单表
	/// </summary>
	public class DbSysMenu
	{ 
		#region DbSysMenu
		/// <summary>
		/// 
		/// </summary>
		public DbSysMenu()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public DbSysMenu(Int32 smId)
		{
			this.smId = smId;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public DbSysMenu(DataRow dr)
		{
			int.TryParse(Convert.ToString(dr["smId"]),out smId);
			this.smName = Convert.ToString(dr["smName"]);
			this.smIcon = Convert.ToString(dr["smIcon"]);
			this.smCode = Convert.ToString(dr["smCode"]);
			this.smUrl = Convert.ToString(dr["smUrl"]);
			this.smStatus = Convert.ToInt16(dr["smStatus"]);
			this.smUpCode = Convert.ToString(dr["smUpCode"]);
			int.TryParse(Convert.ToString(dr["smOrder"]),out smOrder);
			int.TryParse(Convert.ToString(dr["smLevel"]),out smLevel);
			
		}
		#endregion
		
		
		#region SmId
		private Int32 smId;
		/// <summary>	 
		/// 
		/// AutoInc
		/// PK
		/// </summary>
		public Int32 SmId
		{
			get{ return smId; }
			set{ smId= value; }
		}
		#endregion
		
		#region SmName
		private System.String smName;
		/// <summary>	 
		/// 菜单名称
		/// </summary>
		public System.String SmName
		{
			get{ return smName; }
			set{ smName= value; }
		}
		#endregion
		
		#region SmIcon
		private System.String smIcon;
		/// <summary>	 
		/// 菜单图标
		/// </summary>
		public System.String SmIcon
		{
			get{ return smIcon; }
			set{ smIcon= value; }
		}
		#endregion
		
		#region SmCode
		private System.String smCode;
		/// <summary>	 
		/// 菜单编号
		/// </summary>
		public System.String SmCode
		{
			get{ return smCode; }
			set{ smCode= value; }
		}
		#endregion
		
		#region SmUrl
		private System.String smUrl;
		/// <summary>	 
		/// 菜单URL
		/// </summary>
		public System.String SmUrl
		{
			get{ return smUrl; }
			set{ smUrl= value; }
		}
		#endregion
		
		#region SmStatus
		private Int16 smStatus;
		/// <summary>	 
		/// 菜单状态
		/// </summary>
		public Int16 SmStatus
		{
			get{ return smStatus; }
			set{ smStatus= value; }
		}
		#endregion
		
		#region SmUpCode
		private System.String smUpCode;
		/// <summary>	 
		/// 上级菜单编号
		/// </summary>
		public System.String SmUpCode
		{
			get{ return smUpCode; }
			set{ smUpCode= value; }
		}
		#endregion
		
		#region SmOrder
		private Int32 smOrder;
		/// <summary>	 
		/// 菜单排序
		/// </summary>
		public Int32 SmOrder
		{
			get{ return smOrder; }
			set{ smOrder= value; }
		}
		#endregion
		
		#region SmLevel
		private Int32 smLevel;
		/// <summary>	 
		/// 菜单层级
		/// </summary>
		public Int32 SmLevel
		{
			get{ return smLevel; }
			set{ smLevel= value; }
		}
		#endregion

	}
}
